package com.liveneo.adapter.mobile.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmLossItemCypHistory;
import com.liveneo.adapter.base.mapper.PrpmLossItemCypHistoryMapper;
import com.liveneo.adapter.mobile.model.request.GetPolicyItem31Request;
import com.liveneo.adapter.mobile.service.PrpmLossItemCypHistoryService;

/**
 * @Desc：
 * @Title：PrpmLossItemCypHistoryServiceImpl
 * @address: http://www.liveneo.com.cn/
 * @author: Liuzhipeng
 * @version: 1.0 
 * @date: 2016年11月10日 下午9:41:12
 */
@Service
public class PrpmLossItemCypHistoryServiceImpl implements PrpmLossItemCypHistoryService {
    
    @Autowired
    private PrpmLossItemCypHistoryMapper lossItemCypHistoryMapper;
    
    @Override
    public void insertLossItemCypHistory(PrpmLossItemCypHistory LossItemCypHistory) {
        
        lossItemCypHistoryMapper.insert(LossItemCypHistory);
    }

	/**
	  * @Title: insertPrpmLossItemCypHistory
	  * @Description: TODO
	  * @param @param param
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int insertPrpmLossItemCypHistory(Map<String, String> param) {
		
		return lossItemCypHistoryMapper.insertPrpmLossItemCypHistory(param);
	}

	/**
	  * @Title: selectLossItemCypHistoryId
	  * @Description: 
	  * @param @param caseNo
	  * @param @param lossType
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public String selectLossItemCypHistoryId(String caseNo, String lossType) {
		return lossItemCypHistoryMapper.selectLossItemCypHistoryId(caseNo, lossType);
	}

	/**
	  * @Title: updateLossItemCypHistroryById
	  * @Description: 
	  * @param @param LossItemCypHistory
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int updateLossItemCypHistroryById(PrpmLossItemCypHistory LossItemCypHistory) {
		return lossItemCypHistoryMapper.updateByPrimaryKeySelective(LossItemCypHistory);
	}

    @Override
    public List<PrpmLossItemCypHistory> getLossItemCypHistoryByRequest(GetPolicyItem31Request request) {
        
        return lossItemCypHistoryMapper.getLossItemCypHistoryByRequest(request);
        
    }
}
